package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @author 柯南
 * @version JDK 8
 * @className DeliveryPersonnelSearchRequest (此处以class为例)
 * @date 2025/3/12
 * @description TODO
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "DeliveryPersonnelRequest对象", description = "配送员请求对象")
public class DeliveryPersonnelRequest {

    @ApiModelProperty(value = "id 修改时必传")
    private Integer id;

    @ApiModelProperty(value = "配送员名称")
    @NotBlank(message = "配送员名称不能为空")
    private String deliveryPersonnelName;

    @ApiModelProperty(value = "配送员手机号(账号)")
    @NotBlank(message = "配送员手机号不能为空")
    private String deliveryPersonnelPhone;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "身份证号码")
    private String idNumber;

    @ApiModelProperty(value = "身份证正面")
    private String frontOfIdCard;

    @ApiModelProperty(value = "身份证背面")
    private String backOfIdCard;

    @ApiModelProperty(value = "是否长期有效(0不是  1是)")
    private Integer isLongTerm;

    @ApiModelProperty(value = "身份证有效期")
    private String validityPeriodOfIdCard;

    @ApiModelProperty(value = "性别(1:男  0:女  2:未知)")
    private Integer sex = 2;

    @ApiModelProperty(value = "车牌号")
    private String licensePlateNumber;

    @ApiModelProperty(value = "是否被禁用（1未禁用  0已禁用）")
    private Integer isDisable;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "归属门店id")
    private Integer saleRoomId;
}
